#! 客户端post form：curl http://192.168.14.107:5000 -v

from flask import Flask, Response

app = Flask(__name__)

@app.route('/custom')
def custom_response():
    response = Response('Custom response with headers', status=200)
    response.headers['X-Custom-Header'] = 'ThisIsACustomValue'
    response.headers['AAAABBBB'] = 'CCCCDDDD'
    response.headers['DATE'] = 'Wed, 21 Oct 2015 07:28:00 GMT'
    return response

if __name__ == '__main__':
    app.run(debug=True, host='0.0.0.0')